package com.demo.springBoot2.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 好友关系
 * </p>
 *
 * @author wuHua·pl
 * @since 2024-03-16
 */
@Data
@TableName("users_friend")
@ApiModel(value = "UsersFriend对象", description = "好友关系")
public class UsersFriend implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("好友ID")
    private Integer friendId;

    @ApiModelProperty("亲密度")
    private Integer loveNumber;

    @ApiModelProperty("创建数据")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态")
    private Integer flag;

    @ApiModelProperty("0 等待同意 1 同意 2 拒绝 3 拉黑")
    private Integer status;

}
